class HomeController < ApplicationController
  def index
    a=Time.now
    @auctions=Auction.where(["auctions.start<'#{a}' AND auctions.finish>'#{a}'"])
    @auctions1=Auction.where(["auctions.start>'#{a}'"])
    @auctions2=Auction.where(["auctions.finish<'#{a}'"])
    #if(current_user.id!=nil)
    #  @auctions=Auction.find_by_user_id(current_user.id)
    #  @products=Product.find_by_user_id(current_user.id)
    #end
  end
end
